package basic;

/**
 * @Author: 海琳琦
 * @Date: 2021/9/8 15:43
 */
public class Title344 {
    public static void main(String[] args) {
        char[] c = {'a','b','c'};
        reverseString(c);
    }

    private static void reverseString(char[] s) {
        char c;
        for (int i = 0; i < s.length/2; i++) {
            c = s[i];
            s[i] = s[s.length-1-i];
            s[s.length-1-i] = c;
        }
        System.gc();
    }
}
